initCustomEvent(DOMString type, boolean bubbles, boolean cancelable, any detail)
The
initCustomEvent(type, bubbles, cancelable, detail)
method must initialize the
context object with type,
bubbles, and cancelable, and then set its
detail attribute to
detail.